package io.hxci.modules.edu.controller;

import io.hxci.common.annotation.SysLog;
import io.hxci.common.utils.PageUtils;
import io.hxci.common.utils.R;
import io.hxci.modules.edu.service.EduCourseService;
import io.hxci.modules.sys.controller.AbstractController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("edu/course")
public class EduCourseController extends AbstractController {
    @Autowired
    private EduCourseService eduCourseService;

    @SysLog("查看课程信息")
    @RequestMapping("/query")
    public R list(@RequestParam Map<String, Object> params){
        PageUtils page = eduCourseService.queryPage(params,getUserId());
        return R.ok().put("page", page);
    }


}
